n = input("请输入整数N：")
sum = 0
for i in range(int(n)):
    sum = sum+i+1
print("从1到N求和的结果为：",sum)

